﻿#parse("_header.html")
<div id="content">
    <div class="post">
        <h1 class="post-title">${post.title}</h1>
        <div class="post-meta">
            <span class="post-author">$base.getAuthorLink($post.userid)</span>
            <span class="post-date">$post.createdate.tostring("yyyy-MM-dd")</span>
            <span class="post-category">$base.getPostCatagoryLink($post.TypeID)</span>
            <span class="post-view">娴忚(${post.viewcount})</span>
            <span class="post-comment"><a href="#comments">璇勮($post.CommentCount)</a></span>
        </div>
        <div class="post-content">
            ${post.content}
        </div>
        <div class="post-tag">鏍囩:
            #foreach($item in $post.tags)
            <a href="${item.url}" title="${item.description}">${item.name}</a>(${item.count})
            #end
        </div>
        #*
        <div>
            涓婁竴绡? #if($post.previous.postid>0) ${post.previous.link} #else 娌℃湁浜?#end
            <br />
            涓嬩竴绡? #if($post.next.postid>0) ${post.next.link} #else 娌℃湁浜?#end
        </div>
        *#
        <h3>鐩稿叧鏂囩珷</h3>
        <ul class="post-related">
            #foreach($item in $post.relatedposts)
            <li><a href="${item.url}">${item.title}</a>(${item.viewcount})</li>
            #end
        </ul>
        #parse("_comment.html")
    </div>
</div>
#parse("_sidebar.html")
#parse("_footer.html")